/**
 * Created Yaro on 2017/8/25.
 */
//=========================
// 引入子组建和子组建reducer
//=========================
import { combineReducers } from 'redux' ;
import { CreatorReducers, Creator } from './Personal/CreatorRedux';
import { MobileFilmsReducers, Films } from './MineFims/MineFilmsRedux';

export const MoblieMineReducers = combineReducers ({
    getCreator             :            CreatorReducers,
    films                  :            MobileFilmsReducers,

});

export const mapStateToProps = state =>{
    return {
        creator: state.app.personalHome.getCreator,
        filmList: state.app.personalHome.films,
    }
} ;

export const mapDispatchToProps = dispatch =>{
    return{
        initialUser: (e) => {
            dispatch({type: Creator, data: e})
        },
        initialFilms: (e) => {
            dispatch({type: Films, data: e})
        },
    }
} ;
